home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 July / Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops source / Toolbox classes / AppleEvents < prev    next >
MacBinary  |  1997-09-29  |  8.3 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: AppleEvents

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Sep 29 11:58:11 1997, modified Mon Sep 29 11:58:11 1997, creator 'MSET', type ASCII, 7828 bytes "AppleEvents" , at 0x1f14 381 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 41 70 70 6c 65 45 | 76 65 6e 74 73 00 00 00 |..AppleE|vents...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 1e 94 00 | 00 01 7d b0 55 80 93 b0 |........|..}.U...|
|00000060| 55 80 93 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |U.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9b 66 00 00 |........|.....f..|
|00000080| 5c 20 31 30 44 65 63 39 | 33 20 44 42 48 20 20 69 |\ 10Dec9|3 DBH i|
|00000090| 6e 69 74 69 61 6c 20 76 | 65 72 73 69 6f 6e 0d 5c |nitial v|ersion.\|
|000000a0| 20 31 32 46 65 62 39 34 | 20 44 42 48 20 61 64 64 | 12Feb94| DBH add|
|000000b0| 65 64 20 70 72 6f 70 65 | 72 20 64 69 73 70 6f 73 |ed prope|r dispos|
|000000c0| 61 6c 20 6f 66 20 41 70 | 70 6c 65 45 76 65 6e 74 |al of Ap|pleEvent|
|000000d0| 20 61 6e 64 20 52 65 70 | 6c 79 20 76 69 61 20 41 | and Rep|ly via A|
|000000e0| 45 44 69 73 70 6f 73 65 | 44 65 73 63 20 61 74 20 |EDispose|Desc at |
|000000f0| 65 61 63 68 20 61 6e 64 | 0d 5c 20 65 76 65 72 79 |each and|.\ every|
|00000100| 20 74 69 6d 65 20 77 65 | 20 73 65 6e 64 20 61 6e | time we| send an|
|00000110| 20 41 70 70 6c 65 45 76 | 65 6e 74 2e 20 42 65 66 | AppleEv|ent. Bef|
|00000120| 6f 72 65 2c 20 74 68 69 | 73 20 77 61 73 20 63 61 |ore, thi|s was ca|
|00000130| 75 73 69 6e 67 20 6d 65 | 6d 6f 72 79 20 74 6f 20 |using me|mory to |
|00000140| 62 65 20 63 6f 6e 73 75 | 6d 65 64 20 61 6e 64 20 |be consu|med and |
|00000150| 6e 65 76 65 72 0d 5c 20 | 66 72 65 65 64 20 61 74 |never.\ |freed at|
|00000160| 20 65 61 63 68 20 73 65 | 6e 64 2e 0d 20 0d 20 5c | each se|nd.. . \|
|00000170| 20 49 74 20 69 73 20 69 | 6e 74 65 72 65 73 74 69 | It is i|nteresti|
|00000180| 6e 67 20 74 68 61 74 2c | 20 77 69 74 68 20 74 68 |ng that,| with th|
|00000190| 69 73 20 73 63 68 65 6d | 65 20 61 74 20 6c 65 61 |is schem|e at lea|
|000001a0| 73 74 2c 20 69 74 20 69 | 73 0d 20 5c 20 6e 6f 74 |st, it i|s. \ not|
|000001b0| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 20 63 72 | necessa|ry to cr|
|000001c0| 65 61 74 65 20 61 6e 64 | 20 64 69 73 70 6f 73 65 |eate and| dispose|
|000001d0| 20 74 68 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e | the des|cription|
|000001e0| 20 72 65 63 6f 72 64 20 | 51 45 64 65 73 63 20 61 | record |QEdesc a|
|000001f0| 74 20 65 61 63 68 20 73 | 65 6e 64 2e 0d 0d 5c 20 |t each s|end...\ |
|00000200| 53 65 65 20 67 65 6e 65 | 72 61 6c 20 63 6f 6d 6d |See gene|ral comm|
|00000210| 65 6e 74 73 20 61 74 20 | 74 68 65 20 65 6e 64 20 |ents at |the end |
|00000220| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 2e 0d 0d 0d |of this |file....|
|00000230| 5c 20 54 68 69 73 20 41 | 70 70 6c 65 45 76 65 6e |\ This A|ppleEven|
|00000240| 74 20 63 6c 61 73 73 20 | 69 73 20 61 74 20 74 68 |t class |is at th|
|00000250| 65 20 6d 6f 6d 65 6e 74 | 20 67 65 61 72 65 64 20 |e moment| geared |
|00000260| 74 6f 20 73 65 6e 64 69 | 6e 67 20 41 45 73 20 74 |to sendi|ng AEs t|
|00000270| 6f 0d 5c 20 51 75 69 63 | 6b 20 45 64 69 74 2e 20 |o.\ Quic|k Edit. |
|00000280| 20 42 75 74 20 69 74 20 | 77 6f 75 6c 64 6e 27 74 | But it |wouldn't|
|00000290| 20 62 65 20 74 6f 6f 20 | 68 61 72 64 20 74 6f 20 | be too |hard to |
|000002a0| 6d 61 6b 65 20 69 74 20 | 6d 6f 72 65 20 67 65 6e |make it |more gen|
|000002b0| 65 72 61 6c 2e 0d 0d 73 | 79 73 63 61 6c 6c 20 41 |eral...s|yscall A|
|000002c0| 45 43 72 65 61 74 65 44 | 65 73 63 0d 73 79 73 63 |ECreateD|esc.sysc|
|000002d0| 61 6c 6c 20 41 45 44 69 | 73 70 6f 73 65 44 65 73 |all AEDi|sposeDes|
|000002e0| 63 0d 73 79 73 63 61 6c | 6c 20 41 45 53 65 6e 64 |c.syscal|l AESend|
|000002f0| 0d 73 79 73 63 61 6c 6c | 20 41 45 43 72 65 61 74 |.syscall| AECreat|
|00000300| 65 41 70 70 6c 65 45 76 | 65 6e 74 0d 0d 0d 3a 63 |eAppleEv|ent...:c|
|00000310| 6c 61 73 73 20 41 45 44 | 65 73 63 20 73 75 70 65 |lass AED|esc supe|
|00000320| 72 7b 20 6f 62 6a 65 63 | 74 20 7d 0d 0d 36 38 6b |r{ objec|t }..68k|
|00000330| 5f 72 65 63 6f 72 64 0d | 7b 09 6c 6f 6e 67 77 6f |_record.|{.longwo|
|00000340| 72 64 09 64 65 73 63 72 | 69 70 74 6f 72 54 79 70 |rd.descr|iptorTyp|
|00000350| 65 0d 09 68 61 6e 64 6c | 65 09 09 64 61 74 61 48 |e..handl|e..dataH|
|00000360| 61 6e 64 6c 65 09 09 5c | 20 66 69 72 73 74 20 34 |andle..\| first 4|
|00000370| 20 62 79 74 65 73 20 6f | 66 20 68 61 6e 64 6c 65 | bytes o|f handle|
|00000380| 20 77 69 6c 6c 20 3d 20 | 4d 53 45 54 20 61 66 74 | will = |MSET aft|
|00000390| 65 72 20 6e 65 77 3a 0d | 09 76 61 72 09 09 09 64 |er new:.|.var...d|
|000003a0| 61 74 61 50 74 72 0d 7d | 0d 0d 3a 6d 20 63 6c 61 |ataPtr.}|..:m cla|
|000003b0| 73 73 69 6e 69 74 3a 0d | 09 27 74 79 70 65 20 4d |ssinit:.|.'type M|
|000003c0| 53 45 54 20 70 75 74 3a | 20 64 61 74 61 50 74 72 |SET put:| dataPtr|
|000003d0| 09 09 5c 20 70 75 74 20 | 51 45 20 63 72 65 61 74 |..\ put |QE creat|
|000003e0| 6f 72 20 73 69 67 6e 61 | 74 75 72 65 20 69 6e 20 |or signa|ture in |
|000003f0| 61 20 64 61 74 61 50 74 | 72 0d 09 3b 6d 0d 0d 3a |a dataPt|r..;m..:|
|00000400| 6d 20 6e 65 77 3a 0d 09 | 27 74 79 70 65 20 73 69 |m new:..|'type si|
|00000410| 67 6e 09 09 5c 20 74 79 | 70 65 41 70 70 6c 53 69 |gn..\ ty|peApplSi|
|00000420| 67 6e 61 74 75 72 65 0d | 09 61 64 64 72 3a 20 64 |gnature.|.addr: d|
|00000430| 61 74 61 50 74 72 0d 09 | 38 09 09 09 09 5c 20 64 |ataPtr..|8....\ d|
|00000440| 61 74 61 53 69 7a 65 0d | 09 5e 62 61 73 65 09 09 |ataSize.|.^base..|
|00000450| 09 5c 20 56 41 52 20 72 | 65 73 75 6c 74 20 2d 3e |.\ VAR r|esult ->|
|00000460| 20 6f 75 72 20 72 65 63 | 6f 72 64 0d 09 41 45 43 | our rec|ord..AEC|
|00000470| 72 65 61 74 65 44 65 73 | 63 0d 09 49 46 20 2e 22 |reateDes|c..IF ."|
|00000480| 20 66 61 69 6c 65 64 20 | 74 6f 20 63 72 65 61 74 | failed |to creat|
|00000490| 65 20 41 45 20 44 65 73 | 63 20 72 65 63 6f 72 64 |e AE Des|c record|
|000004a0| 22 20 54 48 45 4e 0d 09 | 3b 6d 0d 0d 3a 6d 20 72 |" THEN..|;m..:m r|
|000004b0| 65 6c 65 61 73 65 3a 0d | 09 5e 62 61 73 65 09 09 |elease:.|.^base..|
|000004c0| 5c 20 56 41 52 20 74 68 | 65 41 45 44 65 73 63 20 |\ VAR th|eAEDesc |
|000004d0| 2d 3e 20 6f 75 72 20 72 | 65 63 6f 72 64 0d 09 41 |-> our r|ecord..A|
|000004e0| 45 44 69 73 70 6f 73 65 | 44 65 73 63 20 20 5c 20 |EDispose|Desc \ |
|000004f0| 68 65 72 65 20 77 65 20 | 61 63 74 75 61 6c 6c 79 |here we |actually|
|00000500| 20 75 73 65 20 41 45 44 | 69 73 70 6f 73 65 44 65 | use AED|isposeDe|
|00000510| 73 63 20 74 6f 20 64 69 | 73 70 6f 73 65 20 61 6e |sc to di|spose an|
|00000520| 20 41 45 44 65 73 63 0d | 09 49 46 20 2e 22 20 66 | AEDesc.|.IF ." f|
|00000530| 61 69 6c 65 64 20 74 6f | 20 64 69 73 70 6f 73 65 |ailed to| dispose|
|00000540| 20 41 45 20 44 65 73 63 | 20 72 65 63 6f 72 64 22 | AE Desc| record"|
|00000550| 20 54 48 45 4e 0d 3b 6d | 0d 0d 3b 63 6c 61 73 73 | THEN.;m|..;class|
|00000560| 0d 0d 41 45 44 65 73 63 | 20 51 45 64 65 73 63 0d |..AEDesc| QEdesc.|
|00000570| 0d 0d 0d 76 61 72 69 61 | 62 6c 65 20 64 75 6d 6d |...varia|ble dumm|
|00000580| 79 52 65 70 6c 79 20 31 | 36 20 61 6c 6c 6f 74 0d |yReply 1|6 allot.|
|00000590| 0d 3a 63 6c 61 73 73 20 | 41 70 70 6c 65 45 76 65 |.:class |AppleEve|
|000005a0| 6e 74 20 73 75 70 65 72 | 7b 20 6f 62 6a 65 63 74 |nt super|{ object|
|000005b0| 20 7d 0d 0d 36 38 6b 5f | 72 65 63 6f 72 64 0d 7b | }..68k_|record.{|
|000005c0| 09 69 6e 74 09 77 68 61 | 74 0d 09 76 61 72 09 6d |.int.wha|t..var.m|
|000005d0| 63 6c 61 73 73 0d 09 76 | 61 72 09 77 68 65 6e 0d |class..v|ar.when.|
|000005e0| 09 76 61 72 09 6d 49 44 | 0d 09 69 6e 74 09 6d 6f |.var.mID|..int.mo|
|000005f0| 64 69 66 69 65 72 73 0d | 09 76 61 72 20 74 68 65 |difiers.|.var the|
|00000600| 43 6c 61 73 73 09 5c 20 | 77 69 6c 6c 20 62 65 20 |Class.\ |will be |
|00000610| 27 74 79 70 65 20 4f 50 | 45 4e 20 6f 72 20 54 45 |'type OP|EN or TE|
|00000620| 58 54 20 66 6f 72 20 6e | 6f 77 2e 20 20 43 6f 75 |XT for n|ow. Cou|
|00000630| 6c 64 20 62 65 20 6f 74 | 68 65 72 20 74 68 69 6e |ld be ot|her thin|
|00000640| 67 73 20 6c 61 74 65 72 | 2e 0d 7d 0d 0d 5c 20 3a |gs later|..}..\ :|
|00000650| 6d 20 63 6c 61 73 73 69 | 6e 69 74 3a 20 5c 20 31 |m classi|nit: \ 1|
|00000660| 32 46 65 62 39 34 20 44 | 42 48 20 20 20 6e 65 63 |2Feb94 D|BH nec|
|00000670| 65 73 73 61 72 79 3f 3f | 3f 20 20 61 70 70 61 72 |essary??|? appar|
|00000680| 65 6e 74 6c 79 20 6e 6f | 74 0d 5c 09 6b 6f 6e 73 |ently no|t.\.kons|
|00000690| 74 20 6b 48 69 67 68 4c | 65 76 65 6c 45 76 65 6e |t kHighL|evelEven|
|000006a0| 74 20 70 75 74 3a 20 77 | 68 61 74 20 3b 6d 0d 0d |t put: w|hat ;m..|
|000006b0| 5c 20 47 75 65 73 73 20 | 77 68 61 74 3f 20 20 57 |\ Guess |what? W|
|000006c0| 65 20 68 61 76 65 20 74 | 6f 20 64 69 73 70 6f 73 |e have t|o dispos|
|000006d0| 65 20 6f 66 20 6f 75 72 | 20 41 70 70 6c 65 45 76 |e of our| AppleEv|
|000006e0| 65 6e 74 20 41 46 54 45 | 52 20 45 41 43 48 20 53 |ent AFTE|R EACH S|
|000006f0| 45 4e 44 20 21 0d 5c 20 | 61 6e 64 20 77 65 20 6d |END !.\ |and we m|
|00000700| 75 73 74 20 75 73 65 20 | 41 45 44 69 73 70 6f 73 |ust use |AEDispos|
|00000710| 65 44 65 73 63 2e 20 20 | 54 68 69 73 20 77 61 73 |eDesc. |This was|
|00000720| 20 6e 6f 74 20 69 6d 6d | 65 64 69 61 74 65 6c 79 | not imm|ediately|
|00000730| 20 6f 62 76 69 6f 75 73 | 20 74 6f 20 6d 65 20 66 | obvious| to me f|
|00000740| 72 6f 6d 20 49 4d 2e 0d | 5c 20 41 6c 73 6f 2c 20 |rom IM..|\ Also, |
|00000750| 77 65 20 6d 75 73 74 20 | 64 69 73 70 6f 73 65 20 |we must |dispose |
|00000760| 6f 66 20 6f 75 72 20 72 | 65 70 6c 79 2c 20 61 67 |of our r|eply, ag|
|00000770| 61 69 6e 20 75 73 69 6e | 67 20 41 45 44 69 73 70 |ain usin|g AEDisp|
|00000780| 6f 73 65 44 65 73 63 2e | 20 20 41 45 44 69 73 70 |oseDesc.| AEDisp|
|00000790| 6f 73 65 44 65 73 63 20 | 73 65 65 6d 73 20 74 6f |oseDesc |seems to|
|000007a0| 20 62 65 0d 5c 20 74 68 | 65 20 75 6e 69 76 65 72 | be.\ th|e univer|
|000007b0| 73 61 6c 20 64 69 73 70 | 6f 7a 2d 61 6c 6c 20 66 |sal disp|oz-all f|
|000007c0| 6f 72 20 41 45 20 74 68 | 69 6e 67 73 2e 20 20 54 |or AE th|ings. T|
|000007d0| 68 65 20 70 65 6e 61 6c | 74 79 20 66 6f 72 20 6e |he penal|ty for n|
|000007e0| 6f 74 20 64 6f 69 6e 67 | 20 74 68 69 73 20 69 73 |ot doing| this is|
|000007f0| 20 6c 6f 73 74 20 68 65 | 61 70 20 61 74 20 65 76 | lost he|ap at ev|
|00000800| 65 72 79 0d 5c 20 73 65 | 6e 64 2e 0d 0d 3a 6d 20 |ery.\ se|nd...:m |
|00000810| 72 65 6c 65 61 73 65 3a | 09 20 5c 20 31 32 46 65 |release:|. \ 12Fe|
|00000820| 62 39 34 20 44 42 48 0d | 09 5e 62 61 73 65 20 20 |b94 DBH.|.^base |
|00000830| 41 45 44 69 73 70 6f 73 | 65 44 65 73 63 0d 09 49 |AEDispos|eDesc..I|
|00000840| 46 20 2e 22 20 66 61 69 | 6c 65 64 20 74 6f 20 64 |F ." fai|led to d|
|00000850| 69 73 70 6f 73 65 20 6f | 66 20 41 70 70 6c 65 45 |ispose o|f AppleE|
|00000860| 76 65 6e 74 22 20 54 48 | 45 4e 0d 09 0d 09 64 75 |vent" TH|EN....du|
|00000870| 6d 6d 79 52 65 70 6c 79 | 20 20 41 45 44 69 73 70 |mmyReply| AEDisp|
|00000880| 6f 73 65 44 65 73 63 0d | 09 49 46 20 2e 22 20 66 |oseDesc.|.IF ." f|
|00000890| 61 69 6c 65 64 20 74 6f | 20 64 69 73 70 6f 73 65 |ailed to| dispose|
|000008a0| 20 6f 66 20 52 65 70 6c | 79 22 20 54 48 45 4e 0d | of Repl|y" THEN.|
|000008b0| 09 3b 6d 0d 0d 3a 6d 20 | 6e 65 77 3a 09 7b 20 74 |.;m..:m |new:.{ t|
|000008c0| 68 65 43 6c 61 73 73 20 | 74 68 65 49 44 20 2d 2d |heClass |theID --|
|000008d0| 20 7d 09 5c 20 74 68 65 | 49 44 20 4d 55 53 54 20 | }.\ the|ID MUST |
|000008e0| 62 65 20 61 20 68 61 6e | 64 6c 65 0d 09 74 68 65 |be a han|dle..the|
|000008f0| 43 6c 61 73 73 0d 09 74 | 68 65 49 44 0d 09 51 45 |Class..t|heID..QE|
|00000900| 64 65 73 63 09 09 09 5c | 20 77 65 20 61 72 65 20 |desc...\| we are |
|00000910| 61 6c 77 61 79 73 20 75 | 73 69 6e 67 20 74 68 69 |always u|sing thi|
|00000920| 73 20 74 61 72 67 65 74 | 20 68 65 72 65 0d 09 6b |s target| here..k|
|00000930| 6f 6e 73 74 20 6b 41 75 | 74 6f 47 65 6e 65 72 61 |onst kAu|toGenera|
|00000940| 74 65 52 65 74 75 72 6e | 49 44 0d 09 30 09 09 09 |teReturn|ID..0...|
|00000950| 09 5c 20 6b 6f 6e 73 74 | 20 41 6e 79 54 72 61 6e |.\ konst| AnyTran|
|00000960| 73 61 63 74 69 6f 6e 49 | 44 20 5c 20 6e 6f 20 63 |sactionI|D \ no c|
|00000970| 61 6c 6c 3f 0d 09 5e 62 | 61 73 65 09 09 09 5c 20 |all?..^b|ase...\ |
|00000980| 56 41 52 20 72 65 73 75 | 6c 74 20 77 69 6c 6c 20 |VAR resu|lt will |
|00000990| 62 65 20 6f 75 72 20 6f | 77 6e 20 69 76 61 72 20 |be our o|wn ivar |
|000009a0| 72 65 63 6f 72 64 20 2c | 20 62 75 74 20 6f 6e 6c |record ,| but onl|
|000009b0| 79 20 75 73 69 6e 67 20 | 69 76 61 72 73 0d 09 09 |y using |ivars...|
|000009c0| 09 09 09 5c 20 20 74 68 | 72 6f 75 67 68 20 6d 6f |...\ th|rough mo|
|000009d0| 64 69 66 69 65 72 73 0d | 09 41 45 43 72 65 61 74 |difiers.|.AECreat|
|000009e0| 65 41 70 70 6c 65 45 76 | 65 6e 74 0d 09 49 46 20 |eAppleEv|ent..IF |
|000009f0| 22 20 66 61 69 6c 65 64 | 20 74 6f 20 63 72 65 61 |" failed| to crea|
|00000a00| 74 65 20 41 70 70 6c 65 | 45 76 65 6e 74 22 20 63 |te Apple|Event" c|
|00000a10| 72 20 54 48 45 4e 20 3b | 6d 0d 0d 5c 20 3a 6d 20 |r THEN ;|m..\ :m |
|00000a20| 73 65 74 3a 20 20 28 20 | 41 45 45 76 65 6e 74 43 |set: ( |AEEventC|
|00000a30| 6c 61 73 73 20 2d 2d 20 | 29 20 5c 20 31 32 46 65 |lass -- |) \ 12Fe|
|00000a40| 62 39 34 20 44 42 48 20 | 69 6e 63 6f 72 70 6f 72 |b94 DBH |incorpor|
|00000a50| 61 74 65 64 20 69 6e 74 | 6f 20 6e 65 77 3a 0d 5c |ated int|o new:.\|
|00000a60| 09 70 75 74 3a 20 74 68 | 65 43 6c 61 73 73 20 3b |.put: th|eClass ;|
|00000a70| 6d 0d 0d 3a 6d 20 73 65 | 6e 64 3a 09 28 20 2d 2d |m..:m se|nd:.( --|
|00000a80| 20 6f 73 65 72 72 20 29 | 0d 09 5e 62 61 73 65 09 | oserr )|..^base.|
|00000a90| 5c 20 77 65 20 61 72 65 | 20 73 65 6e 64 69 6e 67 |\ we are| sending|
|00000aa0| 20 6f 75 72 73 65 6c 66 | 2c 20 6f 66 20 63 6f 75 | ourself|, of cou|
|00000ab0| 72 73 65 0d 09 64 75 6d | 6d 79 52 65 70 6c 79 0d |rse..dum|myReply.|
|00000ac0| 09 6b 6f 6e 73 74 20 6b | 41 45 57 61 69 74 52 65 |.konst k|AEWaitRe|
|00000ad0| 70 6c 79 09 09 5c 20 73 | 65 6e 64 6d 6f 64 65 2c |ply..\ s|endmode,|
|00000ae0| 20 77 65 20 6d 75 73 74 | 20 77 61 69 74 20 66 6f | we must| wait fo|
|00000af0| 72 20 72 65 70 6c 79 20 | 73 6f 20 77 65 20 64 6f |r reply |so we do|
|00000b00| 6e 27 74 0d 09 09 09 09 | 09 09 09 5c 20 20 63 6c |n't.....|...\ cl|
|00000b10| 6f 62 62 65 72 20 74 68 | 65 20 68 61 6e 64 6c 65 |obber th|e handle|
|00000b20| 0d 09 09 09 09 09 09 09 | 5c 20 20 62 65 66 6f 72 |........|\ befor|
|00000b30| 65 20 51 45 20 68 61 73 | 20 61 20 63 68 61 6e 63 |e QE has| a chanc|
|00000b40| 65 20 74 6f 20 64 65 61 | 6c 20 77 69 74 68 20 69 |e to dea|l with i|
|00000b50| 74 2e 0d 09 6b 6f 6e 73 | 74 20 6b 41 45 4e 6f 72 |t...kons|t kAENor|
|00000b60| 6d 61 6c 50 72 69 6f 72 | 69 74 79 09 09 09 5c 20 |malPrior|ity...\ |
|00000b70| 73 65 6e 64 50 72 69 6f | 72 69 74 79 0d 09 6b 6f |sendPrio|rity..ko|
|00000b80| 6e 73 74 20 6b 41 45 44 | 65 66 61 75 6c 74 54 69 |nst kAED|efaultTi|
|00000b90| 6d 65 6f 75 74 09 09 09 | 5c 20 74 69 6d 65 6f 75 |meout...|\ timeou|
|00000ba0| 74 69 6e 74 69 63 6b 73 | 20 20 73 65 65 20 49 4d |tinticks| see IM|
|00000bb0| 2d 56 49 20 36 2d 39 34 | 0d 09 30 09 09 09 09 09 |-VI 6-94|..0.....|
|00000bc0| 09 5c 20 69 64 6c 65 70 | 72 6f 63 0d 09 30 09 09 |.\ idlep|roc..0..|
|00000bd0| 09 09 09 09 5c 20 66 69 | 6c 74 65 72 70 72 6f 63 |....\ fi|lterproc|
|00000be0| 0d 09 41 45 53 65 6e 64 | 0d 09 3b 6d 0d 09 0d 0d |..AESend|..;m....|
|00000bf0| 3b 63 6c 61 73 73 0d 0d | 0d 3a 63 6c 61 73 73 20 |;class..|.:class |
|00000c00| 51 45 6f 70 65 6e 20 73 | 75 70 65 72 7b 20 6f 62 |QEopen s|uper{ ob|
|00000c10| 6a 65 63 74 20 7d 0d 0d | 72 65 63 6f 72 64 0d 7b |ject }..|record.{|
|00000c20| 09 62 79 74 65 20 66 69 | 6c 65 4e 61 6d 65 4c 65 |.byte fi|leNameLe|
|00000c30| 6e 67 74 68 0d 09 33 32 | 20 62 79 74 65 73 20 66 |ngth..32| bytes f|
|00000c40| 69 6c 65 4e 61 6d 65 0d | 09 69 6e 74 20 76 6f 6c |ileName.|.int vol|
|00000c50| 52 65 66 23 0d 09 76 61 | 72 20 64 69 72 49 44 0d |Ref#..va|r dirID.|
|00000c60| 09 76 61 72 20 73 65 6c | 53 74 61 72 74 0d 09 76 |.var sel|Start..v|
|00000c70| 61 72 20 53 65 6c 45 6e | 64 0d 7d 0d 0d 3a 6d 20 |ar SelEn|d.}..:m |
|00000c80| 70 75 74 3a 20 7b 20 5e | 6f 62 6a 20 6e 31 20 6e |put: { ^|obj n1 n|
|00000c90| 32 20 2d 2d 20 7d 09 5c | 20 20 66 69 6c 65 20 6f |2 -- }.\| file o|
|00000ca0| 62 6a 65 63 74 20 61 6e | 64 20 64 65 73 69 72 65 |bject an|d desire|
|00000cb0| 64 20 73 65 6c 65 63 74 | 69 6f 6e 20 72 61 6e 67 |d select|ion rang|
|00000cc0| 65 0d 09 67 65 74 6e 61 | 6d 65 3a 20 5b 20 5e 6f |e..getna|me: [ ^o|
|00000cd0| 62 6a 20 5d 20 20 28 20 | 61 64 64 72 20 6c 65 6e |bj ] ( |addr len|
|00000ce0| 20 29 0d 09 33 32 20 6d | 69 6e 20 20 64 75 70 20 | )..32 m|in dup |
|00000cf0| 70 75 74 3a 20 66 69 6c | 65 4e 61 6d 65 4c 65 6e |put: fil|eNameLen|
|00000d00| 67 74 68 20 20 61 64 64 | 72 3a 20 66 69 6c 65 4e |gth add|r: fileN|
|00000d10| 61 6d 65 20 20 73 77 61 | 70 20 20 63 6d 6f 76 65 |ame swa|p cmove|
|00000d20| 09 5c 20 61 6c 61 20 63 | 74 6c 20 65 78 61 6d 70 |.\ ala c|tl examp|
|00000d30| 6c 65 0d 09 0d 09 67 65 | 74 76 72 65 66 3a 20 5b |le....ge|tvref: [|
|00000d40| 20 5e 6f 62 6a 20 5d 20 | 20 70 75 74 3a 20 76 6f | ^obj ] | put: vo|
|00000d50| 6c 52 65 66 23 0d 09 67 | 65 74 64 69 72 49 44 3a |lRef#..g|etdirID:|
|00000d60| 20 5b 20 5e 6f 62 6a 20 | 5d 20 20 70 75 74 3a 20 | [ ^obj |] put: |
|00000d70| 64 69 72 49 44 0d 09 6e | 31 20 70 75 74 3a 20 73 |dirID..n|1 put: s|
|00000d80| 65 6c 53 74 61 72 74 0d | 09 6e 32 20 70 75 74 3a |elStart.|.n2 put:|
|00000d90| 20 53 65 6c 45 6e 64 20 | 3b 6d 0d 0d 3a 6d 20 6c | SelEnd |;m..:m l|
|00000da0| 65 6e 67 74 68 3a 20 20 | 28 20 2d 2d 20 6e 20 29 |ength: |( -- n )|
|00000db0| 20 20 5c 20 63 61 6e 27 | 74 20 73 65 6e 64 20 74 | \ can'|t send t|
|00000dc0| 68 69 73 20 6d 65 73 73 | 61 67 65 20 74 6f 20 61 |his mess|age to a|
|00000dd0| 6e 20 69 76 61 72 21 21 | 0d 09 34 38 20 3b 6d 0d |n ivar!!|..48 ;m.|
|00000de0| 0d 3b 63 6c 61 73 73 0d | 0d 0d 5c 20 54 68 69 73 |.;class.|..\ This|
|00000df0| 20 63 6c 61 73 73 20 77 | 69 6c 6c 20 62 65 20 75 | class w|ill be u|
|00000e00| 73 65 64 20 61 73 20 6f | 75 72 20 73 6f 6c 65 20 |sed as o|ur sole |
|00000e10| 63 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 20 64 65 |communic|ation de|
|00000e20| 76 69 63 65 20 74 6f 20 | 51 45 20 77 68 65 6e 20 |vice to |QE when |
|00000e30| 73 65 6e 64 69 6e 67 20 | 41 45 73 2e 0d 0d 50 50 |sending |AEs...PP|
|00000e40| 43 3f 0d 5b 49 46 5d 0d | 3a 63 6c 61 73 73 20 51 |C?.[IF].|:class Q|
|00000e50| 45 20 73 75 70 65 72 7b | 20 6f 62 6a 65 63 74 20 |E super{| object |
|00000e60| 7d 0d 0d 09 41 70 70 6c | 65 45 76 65 6e 74 09 51 |}...Appl|eEvent.Q|
|00000e70| 45 65 76 65 6e 74 0d 09 | 51 45 6f 70 65 6e 09 09 |Eevent..|QEopen..|
|00000e80| 74 51 45 6f 70 65 6e 0d | 09 73 74 72 69 6e 67 09 |tQEopen.|.string.|
|00000e90| 09 51 45 73 74 72 0d 09 | 0d 5b 45 4c 53 45 5d 0d |.QEstr..|.[ELSE].|
|00000ea0| 0d 3a 63 6c 61 73 73 20 | 51 45 20 73 75 70 65 72 |.:class |QE super|
|00000eb0| 7b 20 6f 62 6a 65 63 74 | 20 7d 0d 0d 09 41 70 70 |{ object| }...App|
|00000ec0| 6c 65 45 76 65 6e 74 09 | 51 45 65 76 65 6e 74 0d |leEvent.|QEevent.|
|00000ed0| 09 51 45 6f 70 65 6e 09 | 09 74 51 45 6f 70 65 6e |.QEopen.|.tQEopen|
|00000ee0| 0d 09 73 74 72 69 6e 67 | 2b 09 09 51 45 73 74 72 |..string|+..QEstr|
|00000ef0| 0d 09 0d 5b 54 48 45 4e | 5d 0d 0d 3a 6d 20 6e 65 |...[THEN|]..:m ne|
|00000f00| 77 3a 0d 09 6e 65 77 3a | 20 51 45 73 74 72 0d 09 |w:..new:| QEstr..|
|00000f10| 6e 65 77 3a 20 51 45 64 | 65 73 63 09 09 5c 20 6e |new: QEd|esc..\ n|
|00000f20| 6f 74 65 20 74 68 61 74 | 20 51 45 64 65 73 63 20 |ote that| QEdesc |
|00000f30| 69 73 20 61 20 70 75 62 | 6c 69 63 20 6f 62 6a 65 |is a pub|lic obje|
|00000f40| 63 74 0d 09 3b 6d 0d 0d | 3a 6d 20 72 65 6c 65 61 |ct..;m..|:m relea|
|00000f50| 73 65 3a 0d 09 72 65 6c | 65 61 73 65 3a 20 51 45 |se:..rel|ease: QE|
|00000f60| 73 74 72 0d 09 72 65 6c | 65 61 73 65 3a 20 51 45 |str..rel|ease: QE|
|00000f70| 64 65 73 63 0d 09 3b 6d | 0d 0d 3a 6d 20 73 65 6e |desc..;m|..:m sen|
|00000f80| 64 3a 20 20 28 20 74 68 | 65 43 6c 61 73 73 20 2d |d: ( th|eClass -|
|00000f90| 2d 20 6f 73 65 72 72 20 | 29 20 5c 20 31 32 46 65 |- oserr |) \ 12Fe|
|00000fa0| 62 39 34 20 44 42 48 20 | 6d 75 73 74 20 6e 65 77 |b94 DBH |must new|
|00000fb0| 3a 20 61 6e 64 20 72 65 | 6c 65 61 73 65 3a 20 66 |: and re|lease: f|
|00000fc0| 6f 72 20 65 61 63 68 20 | 73 65 6e 64 21 21 0d 09 |or each |send!!..|
|00000fd0| 68 61 6e 64 6c 65 3a 20 | 51 45 73 74 72 20 28 20 |handle: |QEstr ( |
|00000fe0| 49 44 20 29 20 20 6e 65 | 77 3a 20 51 45 65 76 65 |ID ) ne|w: QEeve|
|00000ff0| 6e 74 09 5c 20 61 6c 77 | 61 79 73 20 75 73 69 6e |nt.\ alw|ays usin|
|00001000| 67 20 51 45 73 74 72 20 | 68 61 6e 64 6c 65 20 61 |g QEstr |handle a|
|00001010| 73 20 6f 75 72 20 49 44 | 2e 20 20 0d 09 73 65 6e |s our ID|. ..sen|
|00001020| 64 3a 20 51 45 65 76 65 | 6e 74 0d 09 63 6c 65 61 |d: QEeve|nt..clea|
|00001030| 72 3a 20 51 45 73 74 72 | 09 5c 20 31 32 46 65 62 |r: QEstr|.\ 12Feb|
|00001040| 39 34 20 44 42 48 20 6d | 75 73 74 20 61 6c 77 61 |94 DBH m|ust alwa|
|00001050| 79 73 20 63 6c 65 61 72 | 20 74 68 65 20 73 74 72 |ys clear| the str|
|00001060| 69 6e 67 20 62 65 63 61 | 75 73 65 20 6e 65 78 74 |ing beca|use next|
|00001070| 20 61 63 74 69 6f 6e 0d | 09 09 09 09 09 5c 20 6d | action.|.....\ m|
|00001080| 61 79 20 62 65 20 74 6f | 20 73 69 6d 70 6c 79 20 |ay be to| simply |
|00001090| 61 64 64 20 61 73 20 77 | 68 65 6e 20 64 6f 69 6e |add as w|hen doin|
|000010a0| 67 20 61 20 74 65 78 74 | 3a 0d 09 72 65 6c 65 61 |g a text|:..relea|
|000010b0| 73 65 3a 20 51 45 65 76 | 65 6e 74 0d 09 3b 6d 0d |se: QEev|ent..;m.|
|000010c0| 0d 3a 6d 20 6f 70 65 6e | 46 69 6c 65 3a 20 20 28 |.:m open|File: (|
|000010d0| 20 5e 6f 62 6a 20 6e 31 | 20 6e 32 20 2d 2d 20 6f | ^obj n1| n2 -- o|
|000010e0| 73 65 72 72 20 29 09 5c | 20 66 69 6c 65 20 6f 62 |serr ).\| file ob|
|000010f0| 6a 65 63 74 20 61 6e 64 | 20 73 65 6c 65 63 74 69 |ject and| selecti|
|00001100| 6f 6e 20 72 61 6e 67 65 | 0d 09 70 75 74 3a 20 74 |on range|..put: t|
|00001110| 51 45 6f 70 65 6e 0d 09 | 61 64 64 72 3a 20 74 51 |QEopen..|addr: tQ|
|00001120| 45 6f 70 65 6e 20 20 6c | 65 6e 67 74 68 3a 20 74 |Eopen l|ength: t|
|00001130| 51 45 6f 70 65 6e 20 20 | 70 75 74 3a 20 51 45 73 |QEopen |put: QEs|
|00001140| 74 72 0d 09 27 74 79 70 | 65 20 4f 50 45 4e 20 20 |tr..'typ|e OPEN |
|00001150| 73 65 6e 64 3a 20 73 65 | 6c 66 20 3b 6d 0d 0d 3a |send: se|lf ;m..:|
|00001160| 6d 20 74 65 78 74 3a 20 | 20 28 20 61 64 64 72 20 |m text: | ( addr |
|00001170| 6c 65 6e 20 2d 2d 20 29 | 09 09 5c 20 74 65 78 74 |len -- )|..\ text|
|00001180| 20 74 6f 20 62 65 20 22 | 74 79 70 65 64 22 20 69 | to be "|typed" i|
|00001190| 6e 74 6f 20 66 72 6f 6e | 74 20 51 45 20 77 69 6e |nto fron|t QE win|
|000011a0| 64 6f 77 0d 09 09 09 09 | 09 09 09 09 09 5c 20 69 |dow.....|.....\ i|
|000011b0| 66 20 6e 6f 20 77 69 6e | 64 6f 77 20 6f 70 65 6e |f no win|dow open|
|000011c0| 20 69 6e 20 51 45 2c 20 | 6e 6f 20 61 63 74 69 6f | in QE, |no actio|
|000011d0| 6e 20 66 72 6f 6d 20 51 | 45 2c 20 6a 75 73 74 20 |n from Q|E, just |
|000011e0| 61 20 62 65 65 70 0d 5c | 09 70 75 74 3a 20 51 45 |a beep.\|.put: QE|
|000011f0| 73 74 72 09 20 5c 20 32 | 37 4a 61 6e 39 34 20 44 |str. \ 2|7Jan94 D|
|00001200| 42 48 0d 5c 09 27 74 79 | 70 65 20 54 45 58 54 20 |BH.\.'ty|pe TEXT |
|00001210| 73 65 6e 64 3a 20 73 65 | 6c 66 20 3b 6d 0d 09 61 |send: se|lf ;m..a|
|00001220| 64 64 3a 20 51 45 73 74 | 72 20 3b 6d 0d 0d 76 61 |dd: QEst|r ;m..va|
|00001230| 72 69 61 62 6c 65 20 65 | 6d 69 74 76 61 72 20 34 |riable e|mitvar 4|
|00001240| 20 61 6c 6c 6f 74 0d 0d | 3a 6d 20 63 72 3a 09 28 | allot..|:m cr:.(|
|00001250| 20 2d 2d 20 6f 73 65 72 | 72 20 29 0d 09 31 33 20 | -- oser|r )..13 |
|00001260| 65 6d 69 74 76 61 72 20 | 63 21 0d 09 65 6d 69 74 |emitvar |c!..emit|
|00001270| 76 61 72 20 31 20 74 65 | 78 74 3a 20 73 65 6c 66 |var 1 te|xt: self|
|00001280| 0d 09 27 74 79 70 65 20 | 54 45 58 54 20 73 65 6e |..'type |TEXT sen|
|00001290| 64 3a 20 73 65 6c 66 0d | 09 63 6c 65 61 72 3a 20 |d: self.|.clear: |
|000012a0| 51 45 73 74 72 20 3b 6d | 0d 0d 3a 6d 20 6e 65 77 |QEstr ;m|..:m new|
|000012b0| 57 69 6e 64 6f 77 3a 20 | 28 20 61 64 64 72 20 6c |Window: |( addr l|
|000012c0| 65 6e 20 2d 2d 20 6f 73 | 65 72 72 20 29 09 5c 20 |en -- os|err ).\ |
|000012d0| 6f 70 65 6e 73 20 61 20 | 6e 65 77 20 77 69 6e 64 |opens a |new wind|
|000012e0| 6f 77 20 69 6e 20 51 45 | 2c 20 64 6f 65 73 20 6e |ow in QE|, does n|
|000012f0| 6f 74 20 63 72 65 61 74 | 65 20 61 20 66 69 6c 65 |ot creat|e a file|
|00001300| 20 6f 6e 20 64 69 73 6b | 0d 09 09 09 09 09 09 09 | on disk|........|
|00001310| 09 09 5c 20 69 66 20 6e | 6f 20 6d 6f 72 65 20 61 |..\ if n|o more a|
|00001320| 76 61 69 6c 61 62 6c 65 | 20 77 69 6e 64 6f 77 73 |vailable| windows|
|00001330| 20 69 6e 20 51 45 2c 20 | 6e 6f 20 61 63 74 69 6f | in QE, |no actio|
|00001340| 6e 2c 20 6a 75 73 74 20 | 61 20 62 65 65 70 0d 09 |n, just |a beep..|
|00001350| 70 75 74 3a 20 51 45 73 | 74 72 0d 09 27 74 79 70 |put: QEs|tr..'typ|
|00001360| 65 20 4e 45 57 46 20 73 | 65 6e 64 3a 20 73 65 6c |e NEWF s|end: sel|
|00001370| 66 20 3b 6d 0d 0d 3a 6d | 20 70 75 74 52 65 63 74 |f ;m..:m| putRect|
|00001380| 3a 20 20 28 20 6c 20 74 | 20 72 20 62 20 2d 2d 20 |: ( l t| r b -- |
|00001390| 6f 73 65 72 72 20 29 09 | 5c 20 77 69 6c 6c 20 73 |oserr ).|\ will s|
|000013a0| 65 74 20 74 68 65 20 66 | 72 6f 6e 74 20 51 45 20 |et the f|ront QE |
|000013b0| 77 69 6e 64 6f 77 20 70 | 6f 72 74 72 65 63 74 20 |window p|ortrect |
|000013c0| 74 6f 20 74 68 65 73 65 | 20 76 61 6c 75 65 73 0d |to these| values.|
|000013d0| 09 09 09 09 09 09 09 09 | 09 5c 20 69 66 20 6e 6f |........|.\ if no|
|000013e0| 20 77 69 6e 64 6f 77 20 | 6f 70 65 6e 20 69 6e 20 | window |open in |
|000013f0| 51 45 2c 20 6e 6f 20 61 | 63 74 69 6f 6e 20 66 72 |QE, no a|ction fr|
|00001400| 6f 6d 20 51 45 2c 20 6a | 75 73 74 20 61 20 62 65 |om QE, j|ust a be|
|00001410| 65 70 0d 09 70 75 74 3a | 20 74 65 6d 70 72 65 63 |ep..put:| temprec|
|00001420| 74 0d 09 61 64 64 72 3a | 20 74 65 6d 70 72 65 63 |t..addr:| temprec|
|00001430| 74 20 38 20 70 75 74 3a | 20 51 45 73 74 72 0d 09 |t 8 put:| QEstr..|
|00001440| 27 74 79 70 65 20 52 45 | 43 54 20 20 73 65 6e 64 |'type RE|CT send|
|00001450| 3a 20 73 65 6c 66 20 3b | 6d 0d 0d 3a 6d 20 66 69 |: self ;|m..:m fi|
|00001460| 6e 64 3a 20 20 28 20 61 | 64 64 72 20 6c 65 6e 20 |nd: ( a|ddr len |
|00001470| 2d 2d 20 6f 73 65 72 72 | 20 29 20 20 5c 20 77 69 |-- oserr| ) \ wi|
|00001480| 6c 6c 20 72 65 71 75 65 | 73 74 20 74 68 61 74 20 |ll reque|st that |
|00001490| 51 45 20 66 69 6e 64 20 | 66 69 72 73 74 20 6f 63 |QE find |first oc|
|000014a0| 63 75 72 72 65 6e 63 65 | 20 6f 66 0d 09 5c 20 74 |currence| of..\ t|
|000014b0| 68 65 20 67 69 76 65 6e | 20 74 65 78 74 20 69 6e |he given| text in|
|000014c0| 20 74 68 65 20 66 72 6f | 6e 74 20 71 65 20 77 69 | the fro|nt qe wi|
|000014d0| 6e 64 6f 77 2e 20 20 57 | 65 20 61 72 65 20 6c 69 |ndow. W|e are li|
|000014e0| 6d 69 74 65 64 20 74 6f | 20 73 74 72 69 6e 67 73 |mited to| strings|
|000014f0| 20 6f 66 20 6c 65 6e 67 | 74 68 0d 09 5c 20 32 35 | of leng|th..\ 25|
|00001500| 35 20 61 6e 64 20 6c 65 | 73 73 2e 20 20 41 6c 6c |5 and le|ss. All|
|00001510| 20 73 65 61 72 63 68 65 | 73 20 77 69 6c 6c 20 62 | searche|s will b|
|00001520| 65 20 63 61 73 65 20 69 | 6e 73 65 6e 73 69 74 69 |e case i|nsensiti|
|00001530| 76 65 2e 0d 09 70 75 74 | 3a 20 51 45 73 74 72 0d |ve...put|: QEstr.|
|00001540| 09 3e 75 63 3a 20 51 45 | 73 74 72 09 09 09 5c 20 |.>uc: QE|str...\ |
|00001550| 51 45 20 6e 65 65 64 73 | 20 61 6c 6c 20 75 70 70 |QE needs| all upp|
|00001560| 65 72 20 63 61 73 65 20 | 66 6f 72 20 74 68 69 73 |er case |for this|
|00001570| 0d 09 27 74 79 70 65 20 | 46 49 4e 44 20 73 65 6e |..'type |FIND sen|
|00001580| 64 3a 20 73 65 6c 66 20 | 3b 6d 0d 09 0d 3b 63 6c |d: self |;m...;cl|
|00001590| 61 73 73 0d 0d 51 45 20 | 74 51 45 09 09 5c 20 77 |ass..QE |tQE..\ w|
|000015a0| 65 20 6e 6f 77 20 68 61 | 76 65 20 6a 75 73 74 20 |e now ha|ve just |
|000015b0| 6f 6e 65 20 6f 62 6a 65 | 63 74 20 66 6f 72 20 73 |one obje|ct for s|
|000015c0| 65 6e 64 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 73 20 |ending c|ommands |
|000015d0| 74 6f 20 51 75 69 63 6b | 20 45 64 69 74 0d 0d 0d |to Quick| Edit...|
|000015e0| 3a 20 69 6e 69 74 74 51 | 45 0d 09 69 6e 73 74 6c |: inittQ|E..instl|
|000015f0| 64 3f 20 20 3f 45 58 49 | 54 09 09 09 5c 20 4d 75 |d? ?EXI|T...\ Mu|
|00001600| 73 74 6e 27 74 20 64 6f | 20 74 68 69 73 20 69 6e |stn't do| this in|
|00001610| 20 69 6e 73 74 61 6c 6c | 65 64 20 61 70 70 73 0d | install|ed apps.|
|00001620| 5b 20 70 70 63 3f 20 6e | 6f 74 20 5d 0d 5b 69 66 |[ ppc? n|ot ].[if|
|00001630| 5d 0d 09 41 70 70 6c 65 | 45 76 65 6e 74 73 3f 20 |]..Apple|Events? |
|00001640| 20 30 45 58 49 54 0d 5b | 74 68 65 6e 5d 0d 09 6e | 0EXIT.[|then]..n|
|00001650| 65 77 3a 20 74 51 45 20 | 20 3b 0d 0d 69 6e 69 74 |ew: tQE | ;..init|
|00001660| 74 51 45 0d 20 0d 27 20 | 69 6e 69 74 74 51 45 20 |tQE. .' |inittQE |
|00001670| 61 64 64 3a 20 69 6e 69 | 74 5f 61 63 74 69 6f 6e |add: ini|t_action|
|00001680| 73 0d 0d 65 6e 64 6c 6f | 61 64 0d 0d 2b 65 63 68 |s..endlo|ad..+ech|
|00001690| 6f 0d 0d 66 69 6c 65 20 | 74 65 73 74 66 69 6c 65 |o..file |testfile|
|000016a0| 0d 0d 3a 20 47 4f 31 0d | 09 27 74 79 70 65 20 54 |..: GO1.|.'type T|
|000016b0| 45 58 54 20 31 20 73 74 | 64 67 65 74 3a 20 74 65 |EXT 1 st|dget: te|
|000016c0| 73 74 66 69 6c 65 20 2e | 20 20 63 72 0d 09 74 65 |stfile .| cr..te|
|000016d0| 73 74 66 69 6c 65 20 31 | 30 20 32 30 20 20 6f 70 |stfile 1|0 20 op|
|000016e0| 65 6e 46 69 6c 65 3a 20 | 74 51 45 20 2e 20 3b 0d |enFile: |tQE . ;.|
|000016f0| 0d 3a 20 47 4f 32 0d 09 | 22 20 48 65 6c 6c 6f 20 |.: GO2..|" Hello |
|00001700| 57 6f 72 6c 64 22 20 74 | 65 78 74 3a 20 74 51 45 |World" t|ext: tQE|
|00001710| 20 63 72 3a 20 74 51 45 | 20 2e 20 3b 09 5c 20 6e | cr: tQE| . ;.\ n|
|00001720| 6f 74 65 20 68 6f 77 20 | 77 65 20 6d 75 73 74 20 |ote how |we must |
|00001730| 61 6c 77 61 79 73 20 65 | 6e 64 20 77 69 74 68 20 |always e|nd with |
|00001740| 61 20 63 72 3a 20 74 6f | 20 73 65 6e 64 3a 0d 0d |a cr: to| send:..|
|00001750| 3a 20 47 4f 33 0d 09 22 | 20 4d 79 20 46 69 6c 65 |: GO3.."| My File|
|00001760| 20 4e 61 6d 65 22 20 6e | 65 77 77 69 6e 64 6f 77 | Name" n|ewwindow|
|00001770| 3a 20 74 51 45 20 2e 20 | 3b 0d 0d 3a 20 47 4f 34 |: tQE . |;..: GO4|
|00001780| 0d 09 31 30 30 20 35 30 | 20 33 30 30 20 33 35 30 |..100 50| 300 350|
|00001790| 20 70 75 74 72 65 63 74 | 3a 20 74 51 45 20 2e 20 | putrect|: tQE . |
|000017a0| 3b 0d 0d 65 6e 64 6c 6f | 61 64 0d 0d 2a 2a 2a 2a |;..endlo|ad..****|
|000017b0| 2a 2a 20 47 45 4e 45 52 | 41 4c 20 43 4f 4d 4d 45 |** GENER|AL COMME|
|000017c0| 4e 54 53 20 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 49 74 |NTS ****|***...It|
|000017d0| 20 69 73 20 76 65 72 79 | 20 69 6d 70 6f 72 74 61 | is very| importa|
|000017e0| 6e 74 20 74 6f 20 75 6e | 64 65 72 73 74 61 6e 64 |nt to un|derstand|
|000017f0| 20 74 68 65 20 22 74 72 | 69 63 6b 22 20 62 65 69 | the "tr|ick" bei|
|00001800| 6e 67 20 75 73 65 64 20 | 68 65 72 65 20 66 6f 72 |ng used |here for|
|00001810| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 20 62 | communi|cation b|
|00001820| 65 74 77 65 65 6e 20 4d | 6f 70 73 20 61 6e 64 20 |etween M|ops and |
|00001830| 0d 51 45 2e 20 20 57 65 | 20 66 6f 6c 6c 6f 77 20 |.QE. We| follow |
|00001840| 41 70 70 6c 65 27 73 20 | 72 65 63 69 70 65 20 66 |Apple's |recipe f|
|00001850| 6f 72 20 65 76 65 72 79 | 74 68 69 6e 67 20 65 78 |or every|thing ex|
|00001860| 63 65 70 74 20 66 6f 72 | 20 74 68 65 20 64 65 73 |cept for| the des|
|00001870| 63 72 69 70 74 6f 72 20 | 72 65 63 6f 72 64 20 73 |criptor |record s|
|00001880| 63 68 65 6d 65 2e 20 20 | 49 6e 73 74 65 61 64 20 |cheme. |Instead |
|00001890| 6f 66 20 0d 62 75 69 6c | 64 69 6e 67 20 61 6e 64 |of .buil|ding and|
|000018a0| 20 74 68 65 6e 20 64 65 | 63 69 70 68 65 72 69 6e | then de|cipherin|
|000018b0| 67 20 74 68 65 20 73 65 | 65 6d 69 6e 67 6c 79 20 |g the se|emingly |
|000018c0| 6f 76 65 72 6c 79 20 63 | 6f 6d 70 6c 65 78 20 64 |overly c|omplex d|
|000018d0| 65 73 63 72 69 70 74 6f | 72 20 72 65 63 6f 72 64 |escripto|r record|
|000018e0| 73 20 66 6f 72 20 65 61 | 63 68 20 41 45 2c 20 69 |s for ea|ch AE, i|
|000018f0| 74 20 73 65 65 6d 65 64 | 20 0d 74 6f 20 6d 65 20 |t seemed| .to me |
|00001900| 74 6f 20 62 65 20 6d 75 | 63 68 20 6d 6f 72 65 20 |to be mu|ch more |
|00001910| 73 74 72 61 69 67 68 74 | 66 6f 72 77 61 72 64 20 |straight|forward |
|00001920| 74 6f 20 6a 75 73 74 20 | 73 65 6e 64 20 61 20 68 |to just |send a h|
|00001930| 61 6e 64 6c 65 20 74 6f | 20 77 68 61 74 65 76 65 |andle to| whateve|
|00001940| 72 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |r data s|tructure|
|00001950| 20 77 65 20 77 69 73 68 | 2e 20 20 0d 53 69 6e 63 | we wish|. .Sinc|
|00001960| 65 20 77 65 20 63 6f 6e | 74 72 6f 6c 20 65 76 65 |e we con|trol eve|
|00001970| 72 79 74 68 69 6e 67 20 | 61 74 20 62 6f 74 68 20 |rything |at both |
|00001980| 65 6e 64 73 20 28 4d 6f | 70 73 20 61 6e 64 20 51 |ends (Mo|ps and Q|
|00001990| 45 29 2c 20 74 68 65 6e | 20 77 68 79 20 67 6f 20 |E), then| why go |
|000019a0| 74 68 72 6f 75 67 68 20 | 61 6c 6c 20 6f 66 20 74 |through |all of t|
|000019b0| 68 65 20 67 79 72 61 74 | 69 6f 6e 73 20 6f 66 20 |he gyrat|ions of |
|000019c0| 0d 74 68 65 20 41 45 64 | 65 73 63 20 72 65 63 6f |.the AEd|esc reco|
|000019d0| 72 64 20 68 61 6e 64 6c | 69 6e 67 3f 20 20 57 65 |rd handl|ing? We|
|000019e0| 20 61 76 6f 69 64 20 68 | 61 76 69 6e 67 20 74 6f | avoid h|aving to|
|000019f0| 20 64 65 61 6c 20 77 69 | 74 68 20 61 6e 79 20 6f | deal wi|th any o|
|00001a00| 66 20 74 68 65 20 41 45 | 50 75 74 50 61 72 61 6d |f the AE|PutParam|
|00001a10| 2f 41 45 47 65 74 50 61 | 72 61 6d 20 65 74 63 2e |/AEGetPa|ram etc.|
|00001a20| 20 20 0d 41 6c 73 6f 2c | 20 77 65 20 64 6f 6e 27 | .Also,| we don'|
|00001a30| 74 20 65 76 65 6e 20 68 | 61 76 65 20 74 6f 20 64 |t even h|ave to d|
|00001a40| 65 61 6c 20 77 69 74 68 | 20 41 45 49 6e 73 74 61 |eal with| AEInsta|
|00001a50| 6c 6c 45 76 65 6e 74 48 | 61 6e 64 6c 65 72 20 6f |llEventH|andler o|
|00001a60| 72 20 41 45 50 72 6f 63 | 65 73 73 41 70 70 6c 65 |r AEProc|essApple|
|00001a70| 45 76 65 6e 74 21 0d 0d | 57 68 61 74 20 77 65 20 |Event!..|What we |
|00001a80| 64 6f 20 69 73 20 74 6f | 20 6f 6e 6c 79 20 64 65 |do is to| only de|
|00001a90| 66 69 6e 65 20 6f 75 72 | 20 41 70 70 6c 65 45 76 |fine our| AppleEv|
|00001aa0| 65 6e 74 73 20 62 79 20 | 63 6c 61 73 73 20 61 6e |ents by |class an|
|00001ab0| 64 20 6e 6f 74 20 62 79 | 20 61 6c 73 6f 20 70 72 |d not by| also pr|
|00001ac0| 6f 76 69 64 69 6e 67 20 | 61 6e 20 49 44 2e 20 20 |oviding |an ID. |
|00001ad0| 54 68 69 73 20 64 6f 65 | 73 20 0d 6e 6f 74 20 73 |This doe|s .not s|
|00001ae0| 65 65 6d 20 74 6f 20 62 | 65 20 6d 75 63 68 20 6f |eem to b|e much o|
|00001af0| 66 20 61 20 6c 69 6d 69 | 74 61 74 69 6f 6e 20 6f |f a limi|tation o|
|00001b00| 6e 20 64 65 66 69 6e 69 | 6e 67 20 41 45 73 20 73 |n defini|ng AEs s|
|00001b10| 69 6e 63 65 20 74 68 65 | 72 65 20 61 72 65 20 63 |ince the|re are c|
|00001b20| 65 72 74 61 69 6e 6c 79 | 20 70 6c 65 6e 74 79 20 |ertainly| plenty |
|00001b30| 6f 66 20 64 69 66 66 65 | 72 65 6e 74 20 0d 63 6c |of diffe|rent .cl|
|00001b40| 61 73 73 65 73 20 77 65 | 20 63 6f 75 6c 64 20 64 |asses we| could d|
|00001b50| 65 66 69 6e 65 20 77 69 | 74 68 20 74 68 65 20 33 |efine wi|th the 3|
|00001b60| 32 20 62 69 74 20 63 6c | 61 73 73 20 69 64 65 6e |2 bit cl|ass iden|
|00001b70| 74 69 66 69 65 72 2e 20 | 20 4d 6f 73 74 20 69 6d |tifier. | Most im|
|00001b80| 70 6f 72 74 61 6e 74 6c | 79 2c 20 77 65 20 68 61 |portantl|y, we ha|
|00001b90| 76 65 20 6e 6f 77 20 66 | 72 65 65 64 20 75 70 20 |ve now f|reed up |
|00001ba0| 0d 74 68 65 20 49 44 20 | 6f 66 20 6f 75 72 20 41 |.the ID |of our A|
|00001bb0| 45 20 66 6f 72 20 75 73 | 65 20 69 6e 20 61 6e 79 |E for us|e in any|
|00001bc0| 20 77 61 79 20 74 68 61 | 74 20 77 65 20 77 69 73 | way tha|t we wis|
|00001bd0| 68 2c 20 61 6e 64 20 77 | 65 20 77 69 73 68 20 74 |h, and w|e wish t|
|00001be0| 6f 20 6d 61 6b 65 20 6f | 75 72 20 49 44 20 74 68 |o make o|ur ID th|
|00001bf0| 65 20 68 61 6e 64 6c 65 | 20 74 6f 20 74 68 65 20 |e handle| to the |
|00001c00| 64 61 74 61 20 0d 77 65 | 20 77 61 6e 74 20 74 6f |data .we| want to|
|00001c10| 20 70 61 73 73 20 66 72 | 6f 6d 20 4d 6f 70 73 20 | pass fr|om Mops |
|00001c20| 74 6f 20 51 45 20 6f 72 | 20 76 69 63 65 20 76 65 |to QE or| vice ve|
|00001c30| 72 73 61 2e 20 20 49 20 | 64 6f 6e 27 74 20 6b 6e |rsa. I |don't kn|
|00001c40| 6f 77 20 77 68 61 74 20 | 6b 69 6e 64 20 6f 66 20 |ow what |kind of |
|00001c50| 70 72 6f 62 6c 65 6d 73 | 20 74 68 69 73 20 63 6f |problems| this co|
|00001c60| 75 6c 64 20 63 61 75 73 | 65 2e 20 20 0d 54 6f 20 |uld caus|e. .To |
|00001c70| 64 61 74 65 2c 20 49 20 | 68 61 76 65 20 6e 6f 74 |date, I |have not|
|00001c80| 69 63 65 64 20 6e 6f 20 | 70 72 6f 62 6c 65 6d 73 |iced no |problems|
|00001c90| 2e 20 20 42 75 74 20 74 | 68 69 73 20 64 6f 65 73 |. But t|his does|
|00001ca0| 20 6e 6f 74 20 73 65 65 | 6d 20 74 6f 20 62 65 20 | not see|m to be |
|00001cb0| 74 68 65 20 77 61 79 20 | 41 70 70 6c 65 20 69 6e |the way |Apple in|
|00001cc0| 74 65 6e 64 65 64 2e 20 | 20 53 6f 20 0d 62 65 77 |tended. | So .bew|
|00001cd0| 61 72 65 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |are. No|te that |
|00001ce0| 62 6f 74 68 20 4d 6f 70 | 73 20 61 6e 64 20 51 45 |both Mop|s and QE|
|00001cf0| 20 61 63 63 6f 6d 70 6c | 69 73 68 20 41 45 20 63 | accompl|ish AE c|
|00001d00| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 69 6e 20 |ommunica|tion in |
|00001d10| 65 78 61 63 74 6c 79 20 | 74 68 65 20 73 61 6d 65 |exactly |the same|
|00001d20| 20 28 6e 6f 6e 2d 73 74 | 61 6e 64 61 72 64 29 20 | (non-st|andard) |
|00001d30| 0d 77 61 79 2e 20 20 0d | 0d 54 68 65 20 6d 65 6d |.way. .|.The mem|
|00001d40| 6f 72 79 20 70 72 6f 62 | 6c 65 6d 20 74 68 61 74 |ory prob|lem that|
|00001d50| 20 62 6f 74 68 20 51 45 | 20 32 2e 34 20 61 6e 64 | both QE| 2.4 and|
|00001d60| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 4d 6f | the ori|ginal Mo|
|00001d70| 70 73 20 32 2e 34 20 72 | 65 6c 65 61 73 65 20 73 |ps 2.4 r|elease s|
|00001d80| 75 66 66 65 72 65 64 20 | 77 61 73 20 6e 6f 74 20 |uffered |was not |
|00001d90| 72 65 6c 61 74 65 64 0d | 74 6f 20 74 68 69 73 20 |related.|to this |
|00001da0| 73 63 68 65 6d 65 2e 20 | 20 54 68 61 74 20 70 72 |scheme. | That pr|
|00001db0| 6f 62 6c 65 6d 20 65 78 | 69 73 74 65 64 20 64 75 |oblem ex|isted du|
|00001dc0| 65 20 74 6f 20 74 68 65 | 20 6c 61 63 6b 20 6f 66 |e to the| lack of|
|00001dd0| 20 75 6e 64 65 72 73 74 | 61 6e 64 69 6e 67 20 6f | underst|anding o|
|00001de0| 6e 20 6d 79 20 70 61 72 | 74 20 6f 66 20 74 68 65 |n my par|t of the|
|00001df0| 20 6e 65 65 64 20 66 6f | 72 0d 64 69 73 70 6f 73 | need fo|r.dispos|
|00001e00| 69 6e 67 20 41 70 70 6c | 65 45 76 65 6e 74 73 20 |ing Appl|eEvents |
|00001e10| 61 6e 64 20 41 45 20 52 | 65 70 6c 69 65 73 20 61 |and AE R|eplies a|
|00001e20| 66 74 65 72 20 65 61 63 | 68 20 41 45 53 65 6e 64 |fter eac|h AESend|
|00001e30| 2e 20 20 42 75 74 20 6e | 6f 74 65 20 74 68 61 74 |. But n|ote that|
|00001e40| 20 77 65 20 64 6f 20 6e | 6f 74 20 6e 65 65 64 20 | we do n|ot need |
|00001e50| 74 6f 20 63 72 65 61 74 | 65 0d 61 6e 64 20 64 69 |to creat|e.and di|
|00001e60| 73 70 6f 73 65 20 6f 75 | 72 20 64 65 73 63 72 69 |spose ou|r descri|
|00001e70| 70 74 6f 72 20 72 65 63 | 6f 72 64 20 69 74 73 65 |ptor rec|ord itse|
|00001e80| 6c 66 2e 20 20 42 75 74 | 20 77 65 20 6d 75 73 74 |lf. But| we must|
|00001e90| 20 75 73 65 20 41 45 44 | 69 73 70 6f 73 65 44 65 | use AED|isposeDe|
|00001ea0| 73 63 20 74 6f 20 64 69 | 73 70 6f 73 65 20 6f 66 |sc to di|spose of|
|00001eb0| 20 74 68 65 20 0d 41 70 | 70 6c 65 45 76 65 6e 74 | the .Ap|pleEvent|
|00001ec0| 20 61 6e 64 20 41 45 52 | 65 70 6c 79 20 28 20 6e | and AER|eply ( n|
|00001ed0| 6f 20 41 45 44 69 73 70 | 6f 73 65 41 70 70 6c 65 |o AEDisp|oseApple|
|00001ee0| 45 76 65 6e 74 20 65 78 | 69 73 74 73 2c 20 61 70 |Event ex|ists, ap|
|00001ef0| 70 61 72 65 6e 74 6c 79 | 29 2e 0d 0d 2d 44 6f 75 |parently|)...-Dou|
|00001f00| 67 20 48 6f 66 66 6d 61 | 6e 20 20 5c 20 31 32 46 |g Hoffma|n \ 12F|
|00001f10| 65 62 39 34 00 00 00 00 | 00 00 00 00 00 00 00 00 |eb94....|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00001f90| 01 60 0a 86 01 42 7b 50 | 01 1e 62 67 31 01 66 22 |.`...B{P|..bg1.f"|
|00001fa0| 50 01 26 3a 27 5a 5f 2d | 50 01 26 62 2f 01 21 6e |P.&:'Z_-|P.&b/.!n|
|00001fb0| 0b 41 70 70 6c 65 45 76 | 65 6e 74 73 02 00 00 00 |.AppleEv|ents....|
|00001fc0| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00001fd0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 b3 66 c2 79 00 00 | 00 00 00 00 01 7d 24 01 |...f.y..|.....}$.|
|00002000| 66 6a 96 01 67 44 52 57 | 79 50 35 79 6d 01 60 1e |fj..gDRW|yP5ym.`.|
|00002010| 86 01 43 62 52 51 32 4f | 36 6d a6 51 01 be a8 ee |..CbRQ2O|6m.Q....|
|00002020| 01 67 10 57 79 50 39 01 | 66 d2 37 5b 31 01 66 1c |.g.WyP9.|f.7[1.f.|
|00002030| 7f 7e c7 26 90 1a 2f 2d | fe 0c 4e ad 33 22 2d 40 |.~.&../-|..N.3"-@|
|00002040| ff fc 4f ef 00 10 4a ae | ff fc 8e 01 00 88 7f 7e |..O...J.|.......~|
|00002050| 01 00 54 86 01 42 72 50 | 01 09 da f1 6d 01 67 1c |..T..BrP|....m.g.|
|00002060| 7f 7e c7 26 90 3b 01 67 | 50 76 28 29 86 12 0b ea |.~.&.;.g|Pv()....|
|00002070| 48 6e 28 60 7f 32 12 00 | 58 4e 91 76 25 29 86 3c |Hn(`.2..|XN.v%).<|
|00002080| 00 00 00 3e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...>....|........|
|00002090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 0e 61 |........|.......a|
|000020b0| 00 00 0e 61 00 00 00 00 | 00 00 00 00 00 00 00 00 |...a....|........|
|000020c0| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|000020d0| 00 3b 02 80 d7 a8 25 18 | 00 00 00 1c 00 32 00 00 |.;....%.|.....2..|
|000020e0| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|000020f0| 02 80 de 54 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |...T.Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+